
#pragma once

#include "base/core/singleton.h"
#include "Common/TableDefine.h"


class TasktrackerAwarddescCfg : public ManualSingleton <TasktrackerAwarddescCfg>
{
	friend ManualSingleton <TasktrackerAwarddescCfg>;
public:
	TasktrackerAwarddescCfg();
	~TasktrackerAwarddescCfg();
	bool Init(const char *szCfgFile, const char *szSplitChar);
	bool UnInit();
	void Clear();
	const TasktrackerAwarddescCfgInfo *GetTasktrackerAwarddescCfgInfo(int32_t id);
	const TasktrackerAwarddescCfgMap *GetTasktrackerAwarddescCfgMap() { return &m_TasktrackerAwarddescCfgMap; }
private:
	TasktrackerAwarddescCfgMap m_TasktrackerAwarddescCfgMap;
};

#define  g_MakeTasktrackerAwarddescCfgTable() (TasktrackerAwarddescCfg::Instance())
#define  g_GetTasktrackerAwarddescCfgTable() (TasktrackerAwarddescCfg::GetInstance())
#define  g_DelTasktrackerAwarddescCfgTable() (TasktrackerAwarddescCfg::Destroy())